import request from "@/util/request";

/**
 * @description 登录
 * @param data
 * @returns {*}
 */
export function loginApi(data) {
	return request({
		url: '/doLogin',
		method: 'GET',
		data
	})
}

/**
 * @description 发送短信验证码
 * @param data
 * @returns {*}
 */
export function sendMessageCodeApi(data) {
	return request({
		url: '/identifiy/saveMsgIdentifiy',
		method: 'GET',
		data
	})
}
/**
 * @description 获取用户信息，登录后更新用
 * @param data
 * @returns {*}
 */
export function getUser(data) {
	return request({
		url: '/getUserInfo',
		method: 'GET',
		data
	})
}

//通知服务端扫码完成
export function doScanSuccessApi(data) {
	return request({
		url: '/doScanSuccess',
		method: 'get',
		data
	})
}

//取消扫码登录通知
export function doScanCancelApi(data) {
	return request({
		url: '/doScanCancel',
		method: 'get',
		data
	})
}

//确认登录通知
export function doScanLoginApi(data) {
	return request({
		url: '/doScanLogin',
		method: 'get',
		data
	})
}

//意见反馈
export function opinionAddApi(data) {
	return request({
		url: '/opinionAdd',
		method: 'post',
		data
	})
}
//意见反馈分类
export function getTypeListApi(data) {
	return request({
		url: '/typeList',
		method: 'get',
		data
	})
}
//文字匹配岗位
export function voiceInputApi(data) {
	return request({
		url: '/voiceInput',
		method: 'get',
		data
	})
}